#ifndef SAMPLEANALYSIS_H
#define SAMPLEANALYSIS_H


#include "isampleanalysis.h"
#include "SampleAnalysis/View/isampleanalysisform.h"
#include "Auxiliary/BusinessLogic/icount.h"
#include "Auxiliary/Model/countresultdao.h"


class ISampleAnalysisForm;

class SampleAnalysis : public ISampleAnalysis
{
    Q_OBJECT
public:
    SampleAnalysis(QObject *parent = 0);
    ~SampleAnalysis();
    void doInit();
    void enableAnalysis(bool enable);
    void setCheck(bool check);
    void setMode(const QString &analysisMode, const QString &bloodMode);
    void setSampleInfo(SampleInfoDao *dao);
    void setBLView(ISampleAnalysisForm *view);
    void doQuit();

signals:

public slots:
    void onCount();
    void onCountCompelet();

private:
    ISampleAnalysisForm *sampleAnalysisView;
    SampleInfoDao sampleInfoDao;
    ICount *count;

};

#endif // SAMPLEANALYSIS_H
